<?php
namespace app\webadmin\validate;

use think\Validate;

class KefuCheck extends Validate
{
    protected $rule = [
        'name' => 'require',
        'id'=>'require',
    ];

    protected $message = [
        'name.require' => '名称不能为空',
        'id.require' => '缺少更新条件',
    ];

    protected $scene = [
        'add' => ['name'],
        'edit' => ['id','name'],
    ];
}